function Sprite(image,width,height,context,xp,yp,spd) {
	this.file = image;
	this.height = height;
	this.width = width;
	this.x = xp;
	this.y = yp;
	this.startx = 0;
	this.starty = 0;
	this.endx	= 0;
	this.endy	= 0;
	this.xunits = 0;
	this.yunits = 0;
	this.angle = 0;
	this.moving = false;
	this.context = context;
	this.loaded = false;
	this.alpha = 1;
	this.speed = spd;
	this.EVENT_CLICKED = "clicked";
	

	this.setPath = function (sx,sy,ex,ey,speed) {
	
	}
	this.draw = function() {
		this.context.drawImage(this.image,this.x,this.y, this.width,this.height);
	}
	
	this.loadImage = function (file) {
		this.image = new Image();
		this.image.onload = this.imageLoaded;
		this.image.src = file;
	}
			
	this.imageLoaded = function() {
		this.loaded = true;
	}
	
	this.onMouseUp = function () {
	
	}
			
	this.loadImage(this.file);

}